//
//  Labs_MM_weak_DemoVC.swift
//  APSwift
//
//  Created by jianbo.pei on 2022/4/4.
//

import UIKit

class Labs_MM_weak_Animal {
    deinit {
        print("Labs_MM_weak_Animal deinit")
    }
}

class Labs_MM_weak_DemoVC: UIViewController {

//    weak let animal: Labs_MM_weak_Animal? = Labs_MM_weak_Animal()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        print("111")
        test1()
        print("222")
        
        print("333")
        test2()
        print("444")
    }
    
    private func test1() {
        let animal = Labs_MM_weak_Animal()
    }
    
    private func test2() {
        var animal: Labs_MM_weak_Animal? = Labs_MM_weak_Animal()
    }


}
